package com.ruibang.glass.material.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * A型架和水平托盘容器信息
 * </p>
 *
 * @author wujie
 * @since 2024-02-05
 */

@ApiModel(value ="A型架和水平托盘容器信息")
@TableName("glass.g_material_content")
@Data
public class MaterialContent {

    @ApiModelProperty(value = "容器Id")
    @TableId(value = "content_id", type = IdType.ASSIGN_ID)
    private String contentId;
    @ApiModelProperty(value = "容器编码")
    private String contentCode;
    @ApiModelProperty(value = "容器类型:2=成品,3=自产半成品,6=外购半成品")
    private String contentType;
    @ApiModelProperty(value = "状态:0=正常,1=维修")
    private String status;
    @ApiModelProperty(value = "位置状态:0=在库,1=厂外")
    private String positionStatus;
    @ApiModelProperty(value = "批次号")
    private String batchNumber;
    @ApiModelProperty(value = "是否使用中")
    private String isUsing;
    @ApiModelProperty(value = "仓库id")
    private String warehouseId;
    @ApiModelProperty(value = "仓位id")
    private String warehousePositionId;
    @ApiModelProperty(value = "容器名")
    private String name;
    @ApiModelProperty(value = "是否空箱")
    private String isEmpty;
    @ApiModelProperty(value = "最近一次装货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoadMaterialTime;
    @ApiModelProperty(value = "最近一次卸货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastUnloadMaterialTime;
    @ApiModelProperty(value = "是否隐藏")
    private String isHide;
    @ApiModelProperty(value = "创建人")
    private String createUser;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "更新人")
    private String updateUser;
    @ApiModelProperty(value = "最大容量")
    private Integer maxVolume;
}
